﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CommerceShoppingCart
{
    [Serializable]
    public class ShoppingCart
    {
        private List<CartItem> _items;
        private DateTime _dateCreated;
        private DateTime _dateUpdated;

        CartItem newItem = new CartItem();
        
        public ShoppingCart()
        {
            if ( _items == null )
            {
                _items = new List<CartItem>();
                _dateCreated = DateTime.Now;
            }
        }

        public List<CartItem> Items
        {
            get
            {
                return _items;
            }
            set
            {
                _items = value;
            }
        }
    }
}
